var status = -1;
var selectionLog = [];

function start() {
    action(1, 0, 0)
}

function action(d, c, b) {
    if (status == 0 && d == 0) {
        cm.dispose();
        return
    }
    status++;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        cm.dispose()
    } else {
        if (status === a++) {
            cm.setSessionValue("kill_count", "0");
            cm.playerMessage(-1, "请消灭所有敌人。");
            cm.spawnMobLimit(9300542, 1, 1600, 149, 100);
            cm.spawnMobLimit(9300542, 1, 1600, 149, 100);
            cm.spawnMobLimit(9300542, 1, 1650, 149, 100);
            cm.spawnMobLimit(9300542, 1, 1650, 149, 100);
            cm.spawnMobLimit(9300542, 1, 1700, 149, 100);
            cm.spawnMobLimit(9300542, 1, 1700, 149, 100);
            cm.spawnMobLimit(9300542, 1, 1750, 149, 100);
            cm.spawnMobLimit(9300542, 1, 1750, 149, 100);
            cm.spawnMobLimit(9300543, 1, 1800, 149, 100);
            cm.spawnMobLimit(9300543, 1, 1800, 149, 100);
            cm.spawnMobLimit(9300543, 1, 1900, 149, 100);
            cm.spawnMobLimit(9300543, 1, 1900, 149, 100);
            cm.spawnMobLimit(9300543, 1, 1950, 149, 100);
            cm.spawnMobLimit(9300543, 1, 1950, 149, 100);
            cm.spawnMobLimit(9300543, 1, 2000, 149, 100);
            cm.spawnMobLimit(9300543, 1, 2000, 149, 100);
            cm.updateInfoQuest(26011, "");
            cm.updateInfoQuest(500833, "");
            cm.forceCompleteQuest(64703);
            cm.forceCompleteQuest(62417);
            cm.forceStartQuest(9571, "0");
            cm.forceStartQuest(31190, "0");
            cm.forceStartQuest(42102, "0");
            cm.forceStartQuest(7621, "");
            cm.dispose()
        }
    }
};